home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC-SIG: World of Education
/
PC-SiG's World of Education.iso
/
run
/
2602
/
diffgrid.alg
< prev
next >
Wrap
Text File
|
1990-01-27
|
1KB
|
41 lines
{ DIFFGRID - plots a polynomial using different coordinate systems.
Must have START value greater than 0 for log-log plot
and resulting polynomial values greater than 0 for
the polar-logarithmic,log-log, and semilog plots. }
{ set processing span }
start = 1; step = 3; dur = 1999;
a0 = 10; { set polynomial coefficents }
a1 = 3;
a2 = 5;
{ set main label for plots }
label = "Same polynomial plotted using different coordinate systems";
{ create polynomial file and autoscale }
poly = a0 + a1*t + a2*t*t & scaley(poly);
grid = none; { plot on nominal grid without tics }
plot(poly);
pause;
grid = polar; { plot on polar grid }
erase;
plot(poly);
pause;
grid = polog; { plot on polar-logarithmic grid }
erase;
plot(poly);
pause;
grid = semilog; { plot on semilog grid }
erase;
plot(poly);
pause;
grid = log.log; { plot on log-log grid }
erase;
plot(poly);